package com.exmaple.lemlin.ui.adapter;import android.support.annotation.NonNull;import android.support.v4.app.Fragment;import android.support.v4.app.FragmentManager;import android.support.v4.app.FragmentPagerAdapter;import android.view.ViewGroup;import java.util.List;public class MainPagerAdapter extends FragmentPagerAdapter {    private List<Fragment> fragments;    public MainPagerAdapter(FragmentManager fm, List<Fragment> fragments) {        super(fm);        this.fragments = fragments;    }    @Override    public Fragment getItem(int i) {        return fragments.get(i);    }    @Override    public int getCount() {        return fragments.size();    }    @Override    public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {        //super.destroyItem(container, position, object);    }}